﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace HigLabo.WindowsAzure.RestService.ServiceManagement
{
    public class WalkUpgradeDomainBody
    {
        public String UpgradeDomain { get; private set; }

        public WalkUpgradeDomainBody(String upgradeDomain)
        {
            this.UpgradeDomain = upgradeDomain;
        }
        public String CreateText()
        {
            var ns = XNamespace.Get("http://schemas.microsoft.com/windowsazure");
            var doc = new XDocument();
            var root = new XElement(ns.GetName("WalkUpgradeDomain"));
            doc.Add(root);
            root.Add(new XElement(ns.GetName("UpgradeDomain"), this.UpgradeDomain));
            return doc.ToString();
        }
    }
}
